package ClassTest;

public class Block {
    static {
        System.out.println("parent static block");
    }

    {
        System.out.println("parent no-static block");
    }

    Block() {
        System.out.println("parent constructor");
    }

    Block(String s) {
        System.out.println("parent param constructor");
    }


}

class ChildBlock extends Block {
    static{
        System.out.println("child static block");
    }

    {
        System.out.println("child no-static block");
    }

    ChildBlock() {
        System.out.println("child constructor");
    }

    ChildBlock(String s) {
        System.out.println("child param constructor");
    }

    public static void main(String[] args) {
        Block t1 = new ChildBlock();
    }
}

